package com.ciwong.epaper.modules.me.bean;

import com.ciwong.mobilelib.bean.BaseBean;

/**
 * 学校信息
 *
 * @author bin
 * @version ciwong v.1.0 2015/8/10 17:13
 * @since ciwong v.1.0
 */
public class SchoolDetail extends BaseBean {
//    private static final long serialVersionUID = 43048779672367987L;
    /**
     * 学校ID
     */
    private int schoolId;

    /**
     * 学校名称
     */
    private String schoolName;

    /**
     * 校长名称
     */

    private String schoolMaster;

    /**
     * 联系方式
     */
    private String phone;

    /**
     * 地区码
     */
    private String areaCode;

    /**
     * 学校封面
     */
    private String schoolAvatar;

    /**
     * 学段
     */
    private int period;

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getPhone() {

        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getSchoolMaster() {
        return schoolMaster;
    }

    public void setSchoolMaster(String schoolMaster) {
        this.schoolMaster = schoolMaster;
    }

    public int getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(int schoolId) {
        this.schoolId = schoolId;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public int getPeriod() {
        return period;
    }

    public void setPeriod(int period) {
        this.period = period;
    }

    @Override
    public boolean equals(Object o) {
        if (o instanceof SchoolDetail) {
            return schoolId == ((SchoolDetail) o).getSchoolId();
        }
        return false;
    }

    @Override
    public String toString() {
        return getSchoolName();
    }
}
